package org.example;
public class Simulater {
    public void playSound(Animal animal){
        System.out.print("播放"+animal.getAnimalName()+"类的声音:") ;
        animal.cry();
    }
}
